

//
//
// Adventure screen handler for the Tavern Object
//
// L. Dean Gibson II  2/7/01
//
//

#ifndef ADV_TAVERN_H_INCLUDED
#define ADV_TAVERN_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "stationary_adventure_object.h"

// -------------------------------------------------------
// artifact as it appears on the adventure map
// -------------------------------------------------------
class t_adv_tavern : public t_stationary_adventure_object
{
public:
	t_adv_tavern(  std::string const& source );
	virtual void         activate_trigger( t_army* army, t_adv_map_point const& point, 
		                                   t_direction direction, t_adventure_frame* frame );
	virtual void	process_new_day();
	virtual bool    read( std::streambuf&						stream, 
					      t_qualified_adv_object_type const&	type,
					      int									version );
	virtual bool    write( std::streambuf& stream ) const;

private:
	bool	m_closed;
	int		m_closed_days;
};


#endif // ADV_TAVERN_H_INCLUDED